<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson personType="PERSON_ALL_EXACT" psTagType="PERSON_PENSION_QUERY" >
                <ep-button size="small" name="打印"></ep-button>
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <epl-userMessage isCodeType dataType="person" idCount="3" :panel="panel">
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入人员基本信息</ep-title>
                <el-form :model="form" ref="form" :rules="rules">
                    <el-row :gutter="20">
                        <ep-select colspan="8" label="证件类型" name="aac058" :property="form.aac058" placeholder="请选择证件类型"
                                p="R,D" :datas="{formData: form}" codetype="AAC058" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-input  colspan="8" label="证件号码" name="aac147" :property="form.aac147" placeholder="请输入证件号码" 
                                p="R,D" :datas="{formData: form }" rules="this.$rules.isIDCard"></ep-input >
                        <ep-select colspan="8" label="民族" name="aac005" :property="form.aac005" placeholder="请选择民族"
                                p="R" :datas="{formData: form}" codetype="AAC005" rules="this.$rules.test_noBlank"></ep-select>        
                    </el-row>
                    <el-row :gutter="20">
                        <ep-select colspan="8" label="学历" name="aac011" :property="form.aac011" placeholder="请选择学历"
                                p="R" :datas="{formData: form}" codetype="AAC011" rules="this.$rules.test_noBlank"></ep-select>
                        <ep-input  colspan="8" label="手机号码" name="aac067" :property="form.aac067" placeholder="请输入手机号码" 
                                p="R" :datas="{formData: form }" rules="this.$rules.mobile"></ep-input >
                        <ep-input  colspan="8" label="电话号码" name="aae005" :property="form.aae005" placeholder="请输入电话号码" 
                                p="R" :datas="{formData: form }" rules="this.$rules.telephone"></ep-input >       
                    </el-row>
                    <el-row :gutter="20">
                        <ep-input  colspan="8" label="电子邮箱" name="aae159" :property="form.aae159" placeholder="请输入电子邮箱" 
                                p="R" :datas="{formData: form }" rules="this.$rules.isEmail"></ep-input >
                        <ep-input  colspan="8" label="邮政编码" name="aae007" :property="form.aae007" placeholder="请输入邮政编码" 
                                p="R" :datas="{formData: form }" rules="this.$rules.postcode"></ep-input >
                        <ep-select colspan="8" label="婚姻状况" name="aac017" :property="form.aac017" placeholder="请选择婚姻状况"
                                p="R" :datas="{formData: form}" codetype="AAC017" rules="this.$rules.test_noBlank"></ep-select>    
                    </el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="户口所在地址" name="bac030" :property="form.bac030"
                                        placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                        <ep-select colspan="4" label="" label-width="0" name="bac031" :property="form.bac031"
                                        placeholder="请选择市" codetype="BAC031" p="R" :datas="{formData: form}" isChange isCodeType
                                        SelectFilterData=" aaa102 like substr(':bac030',0,2)||'%' and aaa102 like '%00' "></ep-select>
                        <ep-select colspan="4" label="" label-width="0" name="bac032" :property="form.bac032" 
                                        placeholder="请选择区县" codetype="BAC032" p="R" :datas="{formData: form}"
                                        SelectFilterData=" aaa102 like substr(':bac031',0,4)||'%'" ></ep-select>
                        <ep-input colspan="8" label="" label-width="0" name="aac010" :property="form.aac010"
                                        placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="通讯地址" name="bae011" :property="form.bae011"
                                        placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                        <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                        placeholder="请选择市" codetype="BAE008" p="R" :datas="{formData: form}" isChange isCodeType
                                        SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                        <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                        placeholder="请选择区县" codetype="BAE009" p="R" :datas="{formData: form}"
                                        SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                        <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                        placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                    </el-row>
                    <el-row :gutter="20">
                        <ep-select colspan="8" label="待遇调整标志" name="bic120" :property="form.bic120" placeholder="请选择待遇调整标志"
                                p="R" :datas="{formData: form}" codetype="BIC120" rules="this.$rules.test_noBlank"></ep-select>    
                        <ep-date colspan="8" label="变更日期" name="aae035" :property="form.aae035" placeholder="请选择变更日期" 
                                p="R,D" :datas="{formData: form }" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" rules="this.$rules.test_noBlank"></ep-date>
                    </el-row>   
                    <el-row>
                        <ep-textarea :rows="3" label="备注" name="aae013" :property="form.aae013" placeholder="请输入备注信息" 
                                p="E" :datas="{formData: form}"></ep-textarea>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" type="primary" top="20"  bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                       :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                    </el-row>
                </el-form>
            </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/ArchivesChangeJS.js"></script>
